<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>机构编辑</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
</head>
<body>

<div class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-block">
            <input type="text" value="{$adminInfo['adm_username']}" disabled name="adm_username" lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
            <input type="hidden" name="oldPass" value="{$adminInfo['adm_password']}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">登录密码</label>
        <div class="layui-input-block">
            <input type="password" name="adm_password" lay-verify="" placeholder="填入新密码（不修改请置空）" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-block">
            <input type="text" value="{$adminInfo['adm_realname']}" name="adm_realname" lay-verify="required" placeholder="用户姓名" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手机</label>
        <div class="layui-input-block">
            <input type="text" value="{$adminInfo['adm_mobile']}" name="adm_mobile" lay-verify="phone" placeholder="请输入号码" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮箱</label>
        <div class="layui-input-block">
            <input type="text" value="{$adminInfo['adm_email']}" name="adm_email" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">角色</label>
        <div class="layui-input-block">
            <select name="adm_role_id">
                {volist name="roleInfo" id="vo"}
                <option value="{$vo['rol_id']}" {if $adminInfo['adm_role_id']==$vo['rol_id']}selected{/if}>{$vo['rol_name']}</option>
                {/volist}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-inline">
            <input type="checkbox" {if $adminInfo['adm_status']==$Status['on']}checked{/if} lay-filter="switch" name="adm_status" lay-skin="switch" lay-text="已启用|未启用">
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <button class="layui-btn" lay-submit lay-filter="LAY-admin-edit-submit" id="LAY-admin-edit-submit">提交</button>
    </div>
</div>

<script src="/static/layuiadmin/layui/layui.js"></script>
<script>
    layui.config({
        base: '/static/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form'], function(){
        var $ = layui.$
            ,form = layui.form ;
        // form.on("submit(LAY-user-front-submit)",function(data){
        //     console.log(data.field);
        // })
    })
</script>
</body>
</html>
